import request from '@/utils/fetch.js'

const baseUrl = config.baseApiUrl;

export function getToken(username,password,verifyCode) {
   
    return request.get(`${baseUrl}/User/GetToken`,{username:username,password:password,verifyCode:verifyCode});
}

export function GetUserInfo(token) {
    return request.get(`${baseUrl}/User/GetUserInfo`,{token:token});
}

export function RegisterUser(username,password,image) {
    return request.post(`${baseUrl}/User/RegisterUser`,{username:username,password:password,image:image});
}

export function GetVerifyCode() {
    return request.get(`${baseUrl}/User/GetVerifyCode`);
}
  
